<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace app\publics\controller;

class HttpAsyn extends \app\BaseController
{
    public function message()
    {
        $param = \think\facade\Request::param();
        $data = json_decode($param["message"], true);
        switch ($action = $data["action"]) {
            case "channelQr":
                $model = new \app\massage\model\ChannelQr();
                $model->batchChannelQrImgInit($data["uniacid"]);
                break;
            case "orderServiceNotice":
                $model = new \app\massage\model\SendMsgConfig();
                $model->orderServiceNotice($data["uniacid"]);
                break;
            case "wallet_check":
                $model = new \app\massage\model\Wallet();
                $model->wxCheck($data["uniacid"], $data["pay_config"], $data["id"]);
                break;
            case "police_notice":
                $model = new \app\massage\model\Police();
                $model->sendPoliceNotice($data["uniacid"], $data["coach_id"], $data["address"]);
                break;
            case "check_order_pay":
                $model = new \app\shop\controller\IndexWxPay($this->app);
                $model->checkOrderPayData($data["user_id"], $data["paymentApp"]);
                break;
            case "coupon_notice":
                $model = new \app\massage\model\SendMsgConfig();
                $model->sendCouponNotice($data["user"], $data["coupon"]);
                break;
            case "list_commison":
                $member_discount_model = new \app\memberdiscount\model\OrderList();
                $member_discount_model->listCommSuccess($data["uniacid"]);
                $balance_discount_model = new \app\balancediscount\model\OrderList();
                $balance_discount_model->listCommSuccess($data["uniacid"]);
                break;
            default:
                echo "message ok ";
        }
    }
}

?>